package Practice.ooday04;

public class Dog extends Animal implements Swim {
    Dog(String name, int age, String color) {
        super(name, age, color);

    }

    void lookHome() {
        System.out.println(name+"正在看家");
    }

    @Override
    void eat() {
        System.out.println("名叫" + name + "的小狗正在吃骨头");
    }

    @Override
    public void swim() {
        System.out.println("名叫" + name + "的小狗正在游泳");
    }
}
